1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.elasticsearch.client;
21
22 import org.elasticsearch.action.ActionFuture;
23 import org.elasticsearch.action.ActionListener;
24 import org.elasticsearch.action.admin.indices.alias.IndicesAliasesRequest;
25 import org.elasticsearch.action.admin.indices.alias.IndicesAliasesRequestBuilder;
26 import org.elasticsearch.action.admin.indices.alias.IndicesAliasesResponse;
27 import org.elasticsearch.action.admin.indices.alias.exists.AliasesExistRequestBuilder;
28 import org.elasticsearch.action.admin.indices.alias.exists.AliasesExistResponse;
29 import org.elasticsearch.action.admin.indices.alias.get.GetAliasesRequest;
30 import org.elasticsearch.action.admin.indices.alias.get.GetAliasesRequestBuilder;
31 import org.elasticsearch.action.admin.indices.alias.get.GetAliasesResponse;
32 import org.elasticsearch.action.admin.indices.analyze.AnalyzeRequest;
33 import org.elasticsearch.action.admin.indices.analyze.AnalyzeRequestBuilder;
34 import org.elasticsearch.action.admin.indices.analyze.AnalyzeResponse;
35 import org.elasticsearch.action.admin.indices.cache.clear.ClearIndicesCacheRequest;
36 import org.elasticsearch.action.admin.indices.cache.clear.ClearIndicesCacheRequestBuilder;
37 import org.elasticsearch.action.admin.indices.cache.clear.ClearIndicesCacheResponse;
38 import org.elasticsearch.action.admin.indices.close.CloseIndexRequest;
39 import org.elasticsearch.action.admin.indices.close.CloseIndexRequestBuilder;
40 import org.elasticsearch.action.admin.indices.close.CloseIndexResponse;
41 import org.elasticsearch.action.admin.indices.create.CreateIndexRequest;
42 import org.elasticsearch.action.admin.indices.create.CreateIndexRequestBuilder;
43 import org.elasticsearch.action.admin.indices.create.CreateIndexResponse;
44 import org.elasticsearch.action.admin.indices.delete.DeleteIndexRequest;
45 import org.elasticsearch.action.admin.indices.delete.DeleteIndexRequestBuilder;
46 import org.elasticsearch.action.admin.indices.delete.DeleteIndexResponse;
47 import org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsRequest;
48 import org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsRequestBuilder;
49 import org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsResponse;
50 import org.elasticsearch.action.admin.indices.exists.types.TypesExistsRequest;
51 import org.elasticsearch.action.admin.indices.exists.types.TypesExistsRequestBuilder;
52 import org.elasticsearch.action.admin.indices.exists.types.TypesExistsResponse;
53 import org.elasticsearch.action.admin.indices.flush.FlushRequest;
54 import org.elasticsearch.action.admin.indices.flush.FlushRequestBuilder;
55 import org.elasticsearch.action.admin.indices.flush.FlushResponse;
56 import org.elasticsearch.action.admin.indices.get.GetIndexRequest;
57 import org.elasticsearch.action.admin.indices.get.GetIndexRequestBuilder;
58 import org.elasticsearch.action.admin.indices.get.GetIndexResponse;
59 import org.elasticsearch.action.admin.indices.mapping.delete.DeleteMappingRequest;
60 import org.elasticsearch.action.admin.indices.mapping.delete.DeleteMappingRequestBuilder;
61 import org.elasticsearch.action.admin.indices.mapping.delete.DeleteMappingResponse;
62 import org.elasticsearch.action.admin.indices.mapping.get.*;
63 import org.elasticsearch.action.admin.indices.mapping.put.PutMappingRequest;
64 import org.elasticsearch.action.admin.indices.mapping.put.PutMappingRequestBuilder;
65 import org.elasticsearch.action.admin.indices.mapping.put.PutMappingResponse;
66 import org.elasticsearch.action.admin.indices.open.OpenIndexRequest;
67 import org.elasticsearch.action.admin.indices.open.OpenIndexRequestBuilder;
68 import org.elasticsearch.action.admin.indices.open.OpenIndexResponse;
69 import org.elasticsearch.action.admin.indices.optimize.OptimizeRequest;
70 import org.elasticsearch.action.admin.indices.optimize.OptimizeRequestBuilder;
71 import org.elasticsearch.action.admin.indices.optimize.OptimizeResponse;
72 import org.elasticsearch.action.admin.indices.recovery.RecoveryRequest;
73 import org.elasticsearch.action.admin.indices.recovery.RecoveryRequestBuilder;
74 import org.elasticsearch.action.admin.indices.recovery.RecoveryResponse;
75 import org.elasticsearch.action.admin.indices.refresh.RefreshRequest;
76 import org.elasticsearch.action.admin.indices.refresh.RefreshRequestBuilder;
77 import org.elasticsearch.action.admin.indices.refresh.RefreshResponse;
78 import org.elasticsearch.action.admin.indices.segments.IndicesSegmentResponse;
79 import org.elasticsearch.action.admin.indices.segments.IndicesSegmentsRequest;
80 import org.elasticsearch.action.admin.indices.segments.IndicesSegmentsRequestBuilder;
81 import org.elasticsearch.action.admin.indices.settings.get.GetSettingsRequest;
82 import org.elasticsearch.action.admin.indices.settings.get.GetSettingsRequestBuilder;
83 import org.elasticsearch.action.admin.indices.settings.get.GetSettingsResponse;
84 import org.elasticsearch.action.admin.indices.settings.put.UpdateSettingsRequest;
85 import org.elasticsearch.action.admin.indices.settings.put.UpdateSettingsRequestBuilder;
86 import org.elasticsearch.action.admin.indices.settings.put.UpdateSettingsResponse;
87 import org.elasticsearch.action.admin.indices.stats.IndicesStatsRequest;
88 import org.elasticsearch.action.admin.indices.stats.IndicesStatsRequestBuilder;
89 import org.elasticsearch.action.admin.indices.stats.IndicesStatsResponse;
90 import org.elasticsearch.action.admin.indices.status.IndicesStatusRequest;
91 import org.elasticsearch.action.admin.indices.status.IndicesStatusRequestBuilder;
92 import org.elasticsearch.action.admin.indices.status.IndicesStatusResponse;
93 import org.elasticsearch.action.admin.indices.template.delete.DeleteIndexTemplateRequest;
94 import org.elasticsearch.action.admin.indices.template.delete.DeleteIndexTemplateRequestBuilder;
95 import org.elasticsearch.action.admin.indices.template.delete.DeleteIndexTemplateResponse;
96 import org.elasticsearch.action.admin.indices.template.get.GetIndexTemplatesRequest;
97 import org.elasticsearch.action.admin.indices.template.get.GetIndexTemplatesRequestBuilder;
98 import org.elasticsearch.action.admin.indices.template.get.GetIndexTemplatesResponse;
99 import org.elasticsearch.action.admin.indices.template.put.PutIndexTemplateRequest;
100 import org.elasticsearch.action.admin.indices.template.put.PutIndexTemplateRequestBuilder;
101 import org.elasticsearch.action.admin.indices.template.put.PutIndexTemplateResponse;
102 import org.elasticsearch.action.admin.indices.validate.query.ValidateQueryRequest;
103 import org.elasticsearch.action.admin.indices.validate.query.ValidateQueryRequestBuilder;
104 import org.elasticsearch.action.admin.indices.validate.query.ValidateQueryResponse;
105 import org.elasticsearch.action.admin.indices.warmer.delete.DeleteWarmerRequest;
106 import org.elasticsearch.action.admin.indices.warmer.delete.DeleteWarmerRequestBuilder;
107 import org.elasticsearch.action.admin.indices.warmer.delete.DeleteWarmerResponse;
108 import org.elasticsearch.action.admin.indices.warmer.get.GetWarmersRequest;
109 import org.elasticsearch.action.admin.indices.warmer.get.GetWarmersRequestBuilder;
110 import org.elasticsearch.action.admin.indices.warmer.get.GetWarmersResponse;
111 import org.elasticsearch.action.admin.indices.warmer.put.PutWarmerRequest;
112 import org.elasticsearch.action.admin.indices.warmer.put.PutWarmerRequestBuilder;
113 import org.elasticsearch.action.admin.indices.warmer.put.PutWarmerResponse;
114 import org.elasticsearch.common.Nullable;
115
116
117
118
119
120
121 public interface IndicesAdminClient extends ElasticsearchClient<IndicesAdminClient> {
122
123
124
125
126
127
128
129
130
131 ActionFuture<IndicesExistsResponse> exists(IndicesExistsRequest request);
132
133
134
135
136
137
138
139
140 void exists(IndicesExistsRequest request, ActionListener<IndicesExistsResponse> listener);
141
142
143
144
145 IndicesExistsRequestBuilder prepareExists(String... indices);
146
147
148
149
150
151
152
153
154 ActionFuture<TypesExistsResponse> typesExists(TypesExistsRequest request);
155
156
157
158
159
160
161
162 void typesExists(TypesExistsRequest request, ActionListener<TypesExistsResponse> listener);
163
164
165
166
167 TypesExistsRequestBuilder prepareTypesExists(String... index);
168
169
170
171
172 ActionFuture<IndicesStatsResponse> stats(IndicesStatsRequest request);
173
174
175
176
177 void stats(IndicesStatsRequest request, ActionListener<IndicesStatsResponse> listener);
178
179
180
181
182 IndicesStatsRequestBuilder prepareStats(String... indices);
183
184
185
186
187 ActionFuture<RecoveryResponse> recoveries(RecoveryRequest request);
188
189
190
191
192 void recoveries(RecoveryRequest request, ActionListener<RecoveryResponse> listener);
193
194
195
196
197 RecoveryRequestBuilder prepareRecoveries(String... indices);
198
199
200
201
202
203
204
205
206 @Deprecated
207 ActionFuture<IndicesStatusResponse> status(IndicesStatusRequest request);
208
209
210
211
212
213
214
215
216 @Deprecated
217 void status(IndicesStatusRequest request, ActionListener<IndicesStatusResponse> listener);
218
219
220
221
222 @Deprecated
223 IndicesStatusRequestBuilder prepareStatus(String... indices);
224
225
226
227
228
229
230
231
232 ActionFuture<IndicesSegmentResponse> segments(IndicesSegmentsRequest request);
233
234
235
236
237
238
239
240
241 void segments(IndicesSegmentsRequest request, ActionListener<IndicesSegmentResponse> listener);
242
243
244
245
246 IndicesSegmentsRequestBuilder prepareSegments(String... indices);
247
248
249
250
251
252
253
254
255 ActionFuture<CreateIndexResponse> create(CreateIndexRequest request);
256
257
258
259
260
261
262
263
264 void create(CreateIndexRequest request, ActionListener<CreateIndexResponse> listener);
265
266
267
268
269
270
271 CreateIndexRequestBuilder prepareCreate(String index);
272
273
274
275
276
277
278
279
280 ActionFuture<DeleteIndexResponse> delete(DeleteIndexRequest request);
281
282
283
284
285
286
287
288
289 void delete(DeleteIndexRequest request, ActionListener<DeleteIndexResponse> listener);
290
291
292
293
294
295
296 DeleteIndexRequestBuilder prepareDelete(String... indices);
297
298
299
300
301
302
303
304
305 ActionFuture<CloseIndexResponse> close(CloseIndexRequest request);
306
307
308
309
310
311
312
313
314 void close(CloseIndexRequest request, ActionListener<CloseIndexResponse> listener);
315
316
317
318
319
320
321 CloseIndexRequestBuilder prepareClose(String... indices);
322
323
324
325
326
327
328
329
330 ActionFuture<OpenIndexResponse> open(OpenIndexRequest request);
331
332
333
334
335
336
337
338
339 void open(OpenIndexRequest request, ActionListener<OpenIndexResponse> listener);
340
341
342
343
344
345
346 OpenIndexRequestBuilder prepareOpen(String... indices);
347
348
349
350
351
352
353
354
355 ActionFuture<RefreshResponse> refresh(RefreshRequest request);
356
357
358
359
360
361
362
363
364 void refresh(RefreshRequest request, ActionListener<RefreshResponse> listener);
365
366
367
368
369 RefreshRequestBuilder prepareRefresh(String... indices);
370
371
372
373
374
375
376
377
378 ActionFuture<FlushResponse> flush(FlushRequest request);
379
380
381
382
383
384
385
386
387 void flush(FlushRequest request, ActionListener<FlushResponse> listener);
388
389
390
391
392 FlushRequestBuilder prepareFlush(String... indices);
393
394
395
396
397
398
399
400
401 ActionFuture<OptimizeResponse> optimize(OptimizeRequest request);
402
403
404
405
406
407
408
409
410 void optimize(OptimizeRequest request, ActionListener<OptimizeResponse> listener);
411
412
413
414
415 OptimizeRequestBuilder prepareOptimize(String... indices);
416
417
418
419
420 void getMappings(GetMappingsRequest request, ActionListener<GetMappingsResponse> listener);
421
422
423
424
425 ActionFuture<GetMappingsResponse> getMappings(GetMappingsRequest request);
426
427
428
429
430 GetMappingsRequestBuilder prepareGetMappings(String... indices);
431
432
433
434
435 void getFieldMappings(GetFieldMappingsRequest request, ActionListener<GetFieldMappingsResponse> listener);
436
437
438
439
440 GetFieldMappingsRequestBuilder prepareGetFieldMappings(String... indices);
441
442
443
444
445 ActionFuture<GetFieldMappingsResponse> getFieldMappings(GetFieldMappingsRequest request);
446
447
448
449
450
451
452
453
454 ActionFuture<PutMappingResponse> putMapping(PutMappingRequest request);
455
456
457
458
459
460
461
462
463 void putMapping(PutMappingRequest request, ActionListener<PutMappingResponse> listener);
464
465
466
467
468 PutMappingRequestBuilder preparePutMapping(String... indices);
469
470
471
472
473
474
475
476
477 ActionFuture<DeleteMappingResponse> deleteMapping(DeleteMappingRequest request);
478
479
480
481
482
483
484
485
486 void deleteMapping(DeleteMappingRequest request, ActionListener<DeleteMappingResponse> listener);
487
488
489
490
491 DeleteMappingRequestBuilder prepareDeleteMapping(String... indices);
492
493
494
495
496
497
498
499
500 ActionFuture<IndicesAliasesResponse> aliases(IndicesAliasesRequest request);
501
502
503
504
505
506
507
508
509 void aliases(IndicesAliasesRequest request, ActionListener<IndicesAliasesResponse> listener);
510
511
512
513
514 IndicesAliasesRequestBuilder prepareAliases();
515
516
517
518
519
520
521 ActionFuture<GetAliasesResponse> getAliases(GetAliasesRequest request);
522
523
524
525
526
527
528
529 void getAliases(GetAliasesRequest request, ActionListener<GetAliasesResponse> listener);
530
531
532
533
534 GetAliasesRequestBuilder prepareGetAliases(String... aliases);
535
536
537
538
539 AliasesExistRequestBuilder prepareAliasesExist(String... aliases);
540
541
542
543
544
545
546 ActionFuture<AliasesExistResponse> aliasesExist(GetAliasesRequest request);
547
548
549
550
551
552
553
554 void aliasesExist(GetAliasesRequest request, ActionListener<AliasesExistResponse> listener);
555
556
557
558
559
560
561 ActionFuture<GetIndexResponse> getIndex(GetIndexRequest request);
562
563
564
565
566
567
568
569 void getIndex(GetIndexRequest request, ActionListener<GetIndexResponse> listener);
570
571
572
573
574 GetIndexRequestBuilder prepareGetIndex();
575
576
577
578
579
580
581
582
583 ActionFuture<ClearIndicesCacheResponse> clearCache(ClearIndicesCacheRequest request);
584
585
586
587
588
589
590
591
592 void clearCache(ClearIndicesCacheRequest request, ActionListener<ClearIndicesCacheResponse> listener);
593
594
595
596
597 ClearIndicesCacheRequestBuilder prepareClearCache(String... indices);
598
599
600
601
602
603
604
605 ActionFuture<UpdateSettingsResponse> updateSettings(UpdateSettingsRequest request);
606
607
608
609
610
611
612
613 void updateSettings(UpdateSettingsRequest request, ActionListener<UpdateSettingsResponse> listener);
614
615
616
617
618 UpdateSettingsRequestBuilder prepareUpdateSettings(String... indices);
619
620
621
622
623 ActionFuture<AnalyzeResponse> analyze(AnalyzeRequest request);
624
625
626
627
628 void analyze(AnalyzeRequest request, ActionListener<AnalyzeResponse> listener);
629
630
631
632
633
634
635
636 AnalyzeRequestBuilder prepareAnalyze(@Nullable String index, String text);
637
638
639
640
641
642
643 AnalyzeRequestBuilder prepareAnalyze(String text);
644
645
646
647
648 ActionFuture<PutIndexTemplateResponse> putTemplate(PutIndexTemplateRequest request);
649
650
651
652
653 void putTemplate(PutIndexTemplateRequest request, ActionListener<PutIndexTemplateResponse> listener);
654
655
656
657
658
659
660 PutIndexTemplateRequestBuilder preparePutTemplate(String name);
661
662
663
664
665 ActionFuture<DeleteIndexTemplateResponse> deleteTemplate(DeleteIndexTemplateRequest request);
666
667
668
669
670 void deleteTemplate(DeleteIndexTemplateRequest request, ActionListener<DeleteIndexTemplateResponse> listener);
671
672
673
674
675
676
677 DeleteIndexTemplateRequestBuilder prepareDeleteTemplate(String name);
678
679
680
681
682 ActionFuture<GetIndexTemplatesResponse> getTemplates(GetIndexTemplatesRequest request);
683
684
685
686
687 void getTemplates(GetIndexTemplatesRequest request, ActionListener<GetIndexTemplatesResponse> listener);
688
689
690
691
692 GetIndexTemplatesRequestBuilder prepareGetTemplates(String... name);
693
694
695
696
697
698
699
700
701 ActionFuture<ValidateQueryResponse> validateQuery(ValidateQueryRequest request);
702
703
704
705
706
707
708
709
710 void validateQuery(ValidateQueryRequest request, ActionListener<ValidateQueryResponse> listener);
711
712
713
714
715 ValidateQueryRequestBuilder prepareValidateQuery(String... indices);
716
717
718
719
720 ActionFuture<PutWarmerResponse> putWarmer(PutWarmerRequest request);
721
722
723
724
725 void putWarmer(PutWarmerRequest request, ActionListener<PutWarmerResponse> listener);
726
727
728
729
730 PutWarmerRequestBuilder preparePutWarmer(String name);
731
732
733
734
735 ActionFuture<DeleteWarmerResponse> deleteWarmer(DeleteWarmerRequest request);
736
737
738
739
740 void deleteWarmer(DeleteWarmerRequest request, ActionListener<DeleteWarmerResponse> listener);
741
742
743
744
745 DeleteWarmerRequestBuilder prepareDeleteWarmer();
746
747
748
749
750 void getWarmers(GetWarmersRequest request, ActionListener<GetWarmersResponse> listener);
751
752
753
754
755 ActionFuture<GetWarmersResponse> getWarmers(GetWarmersRequest request);
756
757
758
759
760 GetWarmersRequestBuilder prepareGetWarmers(String... indices);
761
762
763
764
765
766
767 void getSettings(GetSettingsRequest request, ActionListener<GetSettingsResponse> listener);
768
769
770
771
772
773 ActionFuture<GetSettingsResponse> getSettings(GetSettingsRequest request);
774
775
776
777
778
779
780 GetSettingsRequestBuilder prepareGetSettings(String... indices);
781 }